
module Envelope_Detector_Analog
#(
    parameter iWIDTH=10,
    parameter oWIDTH=10
)
(
    input wire signed [iWIDTH-1:0] i_SignalInput,
    input wire i_clk,
    input wire i_rst,
    output wire signed [oWIDTH-1:0] o_Envelope
);

reg signed [iWIDTH-1:0] recto;

//HalfWave_Rectifier
always@(*) begin
    if(i_SignalInput>=0) begin
        recto=i_SignalInput;
    end
    else begin
         recto='b0;
    end
end

